package io;

import java.io.FileInputStream;
import java.io.IOException;

public class FisDemo
{
    public static void main(String[] args) throws IOException
    {
        FileInputStream fis = new FileInputStream("a.dat");
        int d = 0;
        while ((d = fis.read()) != -1)
        {
            System.out.println(d);
        }
        fis.close();

    }
}
